input_str = input("请输入一个字符串：")
str = ""
for char in input_str:

    if 'A' <= char <= 'Z':
        str += '1'

    elif 'a' <= char <= 'z':
        str += '0'

    else:
        str += char

print(str)
